<?php
/**
 * Created by : PhpStorm
 * User: Shane
 * Date: 2023-03-17
 * Time: 15:50
 */

namespace app\admin\controller;


use app\AdminBaseController;
use app\admin\model\AdminLog as adminLogModel;

class AdminLog extends AdminBaseController
{
    /**
     * 后台操作日志
     */
    public function index(){
        $adminLogModel = new adminLogModel();
        $res = $adminLogModel->getList("admin_log",$this->page, $this->size, $adminLogModel->search(),"createtime desc");
        $assignData=[
            "res"      =>$res["data"],
            "query"    =>$this->query,
            "search"   =>$this->request->get(),
            "count"    =>$res["count"],
            "curr"     =>$this->page,
            "pageTotal"=>$this->size,
        ];
        return view("index",$assignData);
    }
}